//建筑生成固定武器
params ["_veh", "_group"];


private _list_pos = _veh buildingPos -1;
private _count = count _list_pos;

//if(Param_Debug == 1) then{systemChat str _count};

{
	//附近有载具则不创建
	if((count (_x nearObjects ["AllVehicles", 1]) == 0)
	&& {random 99 < Param_E_Static_Add})then{
		[_x, _group] call fn_createStatic;
	};
}forEach _list_pos;

